package com.ayh.campusfun.service.impl;

import com.ayh.campusfun.common.service.impl.BaseServiceImpl;
import com.ayh.campusfun.dao.TopicShareDao;
import com.ayh.campusfun.entity.TopicShare;
import com.ayh.campusfun.service.TopicShareService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 话题表(TopicShare)表服务实现类
 *
 * @author ayh
 * @since 2021-03-20 20:42:07
 */
@Service
public class TopicShareServiceImpl extends BaseServiceImpl<TopicShare> implements TopicShareService {
    @Resource
    private TopicShareDao topicShareDao;

    @Override
    public int shareClick(Map<String, Object> map) {
        return topicShareDao.shareClick(map);
    }

    @Override
    public void commentById(Long topicId) {
        topicShareDao.commentById(topicId);
    }

}
